package com._21cn.product.entity;

import com._21cn.cms.common.Constants;
import com._21cn.framework.utils.StringUtil;

import java.io.Serializable;
import java.util.*;

public class Watch implements Serializable {
	private static final long serialVersionUID = -1L;	
	
	private Integer id = 0;
	private String name = "";
	private String nameShort = "";
	private Integer marketPrice = 0;
	private Integer secondPrice = 0;
	private String keyword;
	private String firstPicUrl = "";
	private String details = "";
	private Integer sortNum = 0;
	private Integer sex = 0;
	private Integer status = Constants.BUSINESS_ON_SELL;
	private Integer clickNum = 0;
	private Integer shareNum = 0;
	private Integer goodNum = 0;
	private Integer badNum = 0;
	private Integer createUserId;
	private java.util.Date createTime = new Date();
	private Integer modifyUserId;
	private java.util.Date modifyTime = new Date();


    private Cate brand = new Cate();
    private Integer brandId = 0;
    private String brandName = "";
    private String modelName = "";

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    private List<WatchProperty> watchPropertyList = new ArrayList<WatchProperty>();
    private Map<String, String> watchPropertyMap = new HashMap();

    private List<WatchPicture> watchPictureList = new ArrayList<WatchPicture>();

    public List<WatchProperty> getWatchPropertyList() {
        return watchPropertyList;
    }

    public void setWatchPropertyList(List<WatchProperty> watchPropertyList) {
        this.watchPropertyList = watchPropertyList;
    }

    public Map<String, String> getWatchPropertyMap() {
        return watchPropertyMap;
    }

    public void setWatchPropertyMap(Map<String, String> watchPropertyMap) {
        this.watchPropertyMap = watchPropertyMap;
    }

    public List<WatchPicture> getWatchPictureList() {
        return watchPictureList;
    }

    public void setWatchPictureList(List<WatchPicture> watchPictureList) {
        this.watchPictureList = watchPictureList;
    }

    public Cate getBrand() {
        return brand;
    }

    public void setBrand(Cate brand) {
        this.brand = brand;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public void setId(Integer id) {
        this.id = id;  
    }        
    public Integer getId() {  
        return this.id;  
    }  

    public void setName(String name) {  
        this.name = name;  
    }        
    public String getName() {  
        return this.name;  
    }  

    public void setNameShort(String nameShort) {  
        this.nameShort = nameShort;  
    }        
    public String getNameShort() {  
        return this.nameShort;  
    }  

    public void setMarketPrice(Integer marketPrice) {  
        this.marketPrice = marketPrice;  
    }        
    public Integer getMarketPrice() {  
        return this.marketPrice;  
    }  

    public void setSecondPrice(Integer secondPrice) {  
        this.secondPrice = secondPrice;  
    }        
    public Integer getSecondPrice() {  
        return this.secondPrice;  
    }  

    public void setKeyword(String keyword) {  
        this.keyword = keyword;  
    }        
    public String getKeyword() {  
        return this.keyword;  
    }  

    public void setFirstPicUrl(String firstPicUrl) {  
        this.firstPicUrl = firstPicUrl;  
    }        
    public String getFirstPicUrl() {
        if(StringUtil.isEmpty(this.firstPicUrl)){
            if(this.getWatchPictureList()!=null && this.getWatchPictureList().size()>0){
                this.firstPicUrl = getWatchPictureList().get(0).getPicUrl();
            }
        }
        return this.firstPicUrl;  
    }  

    public void setDetails(String details) {  
        this.details = details;  
    }        
    public String getDetails() {  
        return this.details;  
    }  

    public void setSortNum(Integer sortNum) {  
        this.sortNum = sortNum;  
    }        
    public Integer getSortNum() {  
        return this.sortNum;  
    }  

    public void setSex(Integer sex) {  
        this.sex = sex;  
    }        
    public Integer getSex() {  
        return this.sex;  
    }  

    public void setStatus(Integer status) {  
        this.status = status;  
    }        
    public Integer getStatus() {  
        return this.status;  
    }  

    public void setClickNum(Integer clickNum) {  
        this.clickNum = clickNum;  
    }        
    public Integer getClickNum() {  
        return this.clickNum;  
    }  

    public void setShareNum(Integer shareNum) {  
        this.shareNum = shareNum;  
    }        
    public Integer getShareNum() {  
        return this.shareNum;  
    }  

    public void setGoodNum(Integer goodNum) {  
        this.goodNum = goodNum;  
    }        
    public Integer getGoodNum() {  
        return this.goodNum;  
    }  

    public void setBadNum(Integer badNum) {  
        this.badNum = badNum;  
    }        
    public Integer getBadNum() {  
        return this.badNum;  
    }  

    public void setCreateUserId(Integer createUserId) {  
        this.createUserId = createUserId;  
    }        
    public Integer getCreateUserId() {  
        return this.createUserId;  
    }  

    public void setCreateTime(java.util.Date createTime) {  
        this.createTime = createTime;  
    }        
    public java.util.Date getCreateTime() {  
        return this.createTime;  
    }  

    public void setModifyUserId(Integer modifyUserId) {  
        this.modifyUserId = modifyUserId;  
    }        
    public Integer getModifyUserId() {  
        return this.modifyUserId;  
    }  

    public void setModifyTime(java.util.Date modifyTime) {  
        this.modifyTime = modifyTime;  
    }        
    public java.util.Date getModifyTime() {  
        return this.modifyTime;  
    }  

}